package com.yt.base.controller.order.vo;

import com.yt.order.api.model.Institution;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

public class OInstitutionVo extends Institution {
    private Institution parent;

    public OInstitutionVo(){

    }
    public OInstitutionVo(Institution oinstitution){
        try {
            BeanUtils.copyProperties(this, oinstitution);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }
    }

    public Institution getParent() {
        return parent;
    }

    public void setParent(Institution parent) {
        this.parent = parent;
    }
}
